import type { uploadResponseData } from './type'
import request from "./request"
import type { UploadRawFile } from 'element-plus'
export const uploadImg = (file: UploadRawFile) => {
    let formdata:any = new FormData()
    formdata.append('file', file)
    return request.post<any, uploadResponseData<string>>('/admin/product/fileUpload', formdata)
}
